<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>修改个人密码</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="/static/bui/css/bs3/dpl.css" rel="stylesheet" type="text/css"/>
    <link href="/static/bui/css/bs3/bui.css" rel="stylesheet" type="text/css"/>
</head>
<body>

<div class="container">
    <form id="J_Form" class="form-horizontal" action="/user/password" method="post">
        <h3>密码修改 <span style="color:red">
            <c:if test="${!empty msg}">
                ${msg}
            </c:if></span></h3>

        <div class="row">
            <div class="control-group span12">
                <label class="control-label"><s>*</s>原密码：</label>

                <div class="controls">
                    <input name="oldPassword" type="password" class="control-text" data-rules="{required:true}">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="control-group span12">
                <label class="control-label"><s>*</s>新密码：</label>

                <div class="controls">
                    <input id="password" name="password" type="password" class="control-text"
                           data-rules="{required:true,minlength:5,maxlength:12}">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="control-group span12">
                <label class="control-label"><s>*</s>确认密码：</label>

                <div class="controls">
                    <input name="rpassword" type="password" class="control-text"
                           data-rules="{required:true,minlength:5,maxlength:12,equalTo:'#password'}">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="form-actions offset3">
                <button type="submit" class="button button-primary">确认修改</button>
                <button type="reset" class="button">重置</button>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="/static/bui/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="/static/bui/js/bui.js"></script>
<script type="text/javascript">
    BUI.use('bui/form', function (Form) {
        new Form.Form({
            srcNode: '#J_Form'
        }).render();
    });
</script>
</body>
</html>
